/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TestFilterWindow.java
 *
 * Created on Apr 19, 2010, 3:25:44 AM
 */

package esrunecalc;

/**
 *
 * @author Trevor
 */
public class FilterWindow extends javax.swing.JDialog {

    public Filter filter;
    /** Creates new form TestFilterWindow */
    public FilterWindow(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jCheckBox12 = new javax.swing.JCheckBox();
        jCheckBox13 = new javax.swing.JCheckBox();
        jCheckBox29 = new javax.swing.JCheckBox();
        jCheckBox6 = new javax.swing.JCheckBox();
        jCheckBox30 = new javax.swing.JCheckBox();
        jCheckBox5 = new javax.swing.JCheckBox();
        jCheckBox4 = new javax.swing.JCheckBox();
        jCheckBox32 = new javax.swing.JCheckBox();
        jCheckBox3 = new javax.swing.JCheckBox();
        jCheckBox0 = new javax.swing.JCheckBox();
        jCheckBox2 = new javax.swing.JCheckBox();
        jCheckBox1 = new javax.swing.JCheckBox();
        jCheckBox42 = new javax.swing.JCheckBox();
        jCheckBox45 = new javax.swing.JCheckBox();
        jCheckBox19 = new javax.swing.JCheckBox();
        jCheckBox43 = new javax.swing.JCheckBox();
        jCheckBox17 = new javax.swing.JCheckBox();
        jCheckBox44 = new javax.swing.JCheckBox();
        jCheckBox15 = new javax.swing.JCheckBox();
        jCheckBox16 = new javax.swing.JCheckBox();
        jCheckBox14 = new javax.swing.JCheckBox();
        jCheckBox10 = new javax.swing.JCheckBox();
        jCheckBox7 = new javax.swing.JCheckBox();
        jCheckBox9 = new javax.swing.JCheckBox();
        jCheckBox8 = new javax.swing.JCheckBox();
        jCheckBox11 = new javax.swing.JCheckBox();
        oneSlotCheckBox = new javax.swing.JCheckBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jCheckBox21 = new javax.swing.JCheckBox();
        jCheckBox39 = new javax.swing.JCheckBox();
        jCheckBox24 = new javax.swing.JCheckBox();
        jCheckBox25 = new javax.swing.JCheckBox();
        jCheckBox18 = new javax.swing.JCheckBox();
        jCheckBox20 = new javax.swing.JCheckBox();
        jCheckBox27 = new javax.swing.JCheckBox();
        jCheckBox26 = new javax.swing.JCheckBox();
        jCheckBox33 = new javax.swing.JCheckBox();
        jCheckBox34 = new javax.swing.JCheckBox();
        jLabel3 = new javax.swing.JLabel();
        equipmentTypeSelectAllButton = new javax.swing.JButton();
        fourSlotCheckBox = new javax.swing.JCheckBox();
        runesSelectAllButton = new javax.swing.JButton();
        fiveSlotCheckBox = new javax.swing.JCheckBox();
        runesSelectNoneButton = new javax.swing.JButton();
        sixSlotCheckBox = new javax.swing.JCheckBox();
        jSeparator1 = new javax.swing.JSeparator();
        acceptButton = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        equipmentTypeList = new javax.swing.JList();
        cancelButton = new javax.swing.JButton();
        jCheckBox31 = new javax.swing.JCheckBox();
        jCheckBox35 = new javax.swing.JCheckBox();
        jCheckBox28 = new javax.swing.JCheckBox();
        jCheckBox41 = new javax.swing.JCheckBox();
        jCheckBox23 = new javax.swing.JCheckBox();
        jCheckBox22 = new javax.swing.JCheckBox();
        jCheckBox40 = new javax.swing.JCheckBox();
        jCheckBox38 = new javax.swing.JCheckBox();
        jCheckBox36 = new javax.swing.JCheckBox();
        jCheckBox37 = new javax.swing.JCheckBox();
        twoSlotCheckBox = new javax.swing.JCheckBox();
        threeSlotCheckBox = new javax.swing.JCheckBox();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("Form"); // NOI18N

        jCheckBox12.setSelected(true);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(esrunecalc.ESRuneCalcApp.class).getContext().getResourceMap(FilterWindow.class);
        jCheckBox12.setText(resourceMap.getString("jCheckBox12.text")); // NOI18N
        jCheckBox12.setName("jCheckBox12"); // NOI18N

        jCheckBox13.setSelected(true);
        jCheckBox13.setText(resourceMap.getString("jCheckBox13.text")); // NOI18N
        jCheckBox13.setName("jCheckBox13"); // NOI18N

        jCheckBox29.setSelected(true);
        jCheckBox29.setText(resourceMap.getString("jCheckBox29.text")); // NOI18N
        jCheckBox29.setName("jCheckBox29"); // NOI18N

        jCheckBox6.setSelected(true);
        jCheckBox6.setText(resourceMap.getString("jCheckBox6.text")); // NOI18N
        jCheckBox6.setName("jCheckBox6"); // NOI18N

        jCheckBox30.setSelected(true);
        jCheckBox30.setText(resourceMap.getString("jCheckBox30.text")); // NOI18N
        jCheckBox30.setName("jCheckBox30"); // NOI18N

        jCheckBox5.setSelected(true);
        jCheckBox5.setText(resourceMap.getString("jCheckBox5.text")); // NOI18N
        jCheckBox5.setName("jCheckBox5"); // NOI18N

        jCheckBox4.setSelected(true);
        jCheckBox4.setText(resourceMap.getString("jCheckBox4.text")); // NOI18N
        jCheckBox4.setName("jCheckBox4"); // NOI18N

        jCheckBox32.setSelected(true);
        jCheckBox32.setText(resourceMap.getString("jCheckBox32.text")); // NOI18N
        jCheckBox32.setName("jCheckBox32"); // NOI18N

        jCheckBox3.setSelected(true);
        jCheckBox3.setText(resourceMap.getString("jCheckBox3.text")); // NOI18N
        jCheckBox3.setName("jCheckBox3"); // NOI18N

        jCheckBox0.setSelected(true);
        jCheckBox0.setText(resourceMap.getString("jCheckBox0.text")); // NOI18N
        jCheckBox0.setName("jCheckBox0"); // NOI18N

        jCheckBox2.setSelected(true);
        jCheckBox2.setText(resourceMap.getString("jCheckBox2.text")); // NOI18N
        jCheckBox2.setName("jCheckBox2"); // NOI18N

        jCheckBox1.setSelected(true);
        jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N
        jCheckBox1.setName("jCheckBox1"); // NOI18N

        jCheckBox42.setSelected(true);
        jCheckBox42.setText(resourceMap.getString("jCheckBox42.text")); // NOI18N
        jCheckBox42.setName("jCheckBox42"); // NOI18N

        jCheckBox45.setSelected(true);
        jCheckBox45.setText(resourceMap.getString("jCheckBox45.text")); // NOI18N
        jCheckBox45.setName("jCheckBox45"); // NOI18N

        jCheckBox19.setSelected(true);
        jCheckBox19.setText(resourceMap.getString("jCheckBox19.text")); // NOI18N
        jCheckBox19.setName("jCheckBox19"); // NOI18N

        jCheckBox43.setSelected(true);
        jCheckBox43.setText(resourceMap.getString("jCheckBox43.text")); // NOI18N
        jCheckBox43.setName("jCheckBox43"); // NOI18N

        jCheckBox17.setSelected(true);
        jCheckBox17.setText(resourceMap.getString("jCheckBox17.text")); // NOI18N
        jCheckBox17.setName("jCheckBox17"); // NOI18N

        jCheckBox44.setSelected(true);
        jCheckBox44.setText(resourceMap.getString("jCheckBox44.text")); // NOI18N
        jCheckBox44.setName("jCheckBox44"); // NOI18N

        jCheckBox15.setSelected(true);
        jCheckBox15.setText(resourceMap.getString("jCheckBox15.text")); // NOI18N
        jCheckBox15.setName("jCheckBox15"); // NOI18N

        jCheckBox16.setSelected(true);
        jCheckBox16.setText(resourceMap.getString("jCheckBox16.text")); // NOI18N
        jCheckBox16.setName("jCheckBox16"); // NOI18N

        jCheckBox14.setSelected(true);
        jCheckBox14.setText(resourceMap.getString("jCheckBox14.text")); // NOI18N
        jCheckBox14.setName("jCheckBox14"); // NOI18N

        jCheckBox10.setSelected(true);
        jCheckBox10.setText(resourceMap.getString("jCheckBox10.text")); // NOI18N
        jCheckBox10.setName("jCheckBox10"); // NOI18N

        jCheckBox7.setSelected(true);
        jCheckBox7.setText(resourceMap.getString("jCheckBox7.text")); // NOI18N
        jCheckBox7.setName("jCheckBox7"); // NOI18N

        jCheckBox9.setSelected(true);
        jCheckBox9.setText(resourceMap.getString("jCheckBox9.text")); // NOI18N
        jCheckBox9.setName("jCheckBox9"); // NOI18N

        jCheckBox8.setSelected(true);
        jCheckBox8.setText(resourceMap.getString("jCheckBox8.text")); // NOI18N
        jCheckBox8.setName("jCheckBox8"); // NOI18N

        jCheckBox11.setSelected(true);
        jCheckBox11.setText(resourceMap.getString("jCheckBox11.text")); // NOI18N
        jCheckBox11.setName("jCheckBox11"); // NOI18N

        oneSlotCheckBox.setSelected(true);
        oneSlotCheckBox.setText(resourceMap.getString("oneSlotCheckBox.text")); // NOI18N
        oneSlotCheckBox.setName("oneSlotCheckBox"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jCheckBox21.setSelected(true);
        jCheckBox21.setText(resourceMap.getString("jCheckBox21.text")); // NOI18N
        jCheckBox21.setName("jCheckBox21"); // NOI18N

        jCheckBox39.setSelected(true);
        jCheckBox39.setText(resourceMap.getString("jCheckBox39.text")); // NOI18N
        jCheckBox39.setName("jCheckBox39"); // NOI18N

        jCheckBox24.setSelected(true);
        jCheckBox24.setText(resourceMap.getString("jCheckBox24.text")); // NOI18N
        jCheckBox24.setName("jCheckBox24"); // NOI18N

        jCheckBox25.setSelected(true);
        jCheckBox25.setText(resourceMap.getString("jCheckBox25.text")); // NOI18N
        jCheckBox25.setName("jCheckBox25"); // NOI18N

        jCheckBox18.setSelected(true);
        jCheckBox18.setText(resourceMap.getString("jCheckBox18.text")); // NOI18N
        jCheckBox18.setName("jCheckBox18"); // NOI18N

        jCheckBox20.setSelected(true);
        jCheckBox20.setText(resourceMap.getString("jCheckBox20.text")); // NOI18N
        jCheckBox20.setName("jCheckBox20"); // NOI18N

        jCheckBox27.setSelected(true);
        jCheckBox27.setText(resourceMap.getString("jCheckBox27.text")); // NOI18N
        jCheckBox27.setName("jCheckBox27"); // NOI18N

        jCheckBox26.setSelected(true);
        jCheckBox26.setText(resourceMap.getString("jCheckBox26.text")); // NOI18N
        jCheckBox26.setName("jCheckBox26"); // NOI18N

        jCheckBox33.setSelected(true);
        jCheckBox33.setText(resourceMap.getString("jCheckBox33.text")); // NOI18N
        jCheckBox33.setName("jCheckBox33"); // NOI18N

        jCheckBox34.setSelected(true);
        jCheckBox34.setText(resourceMap.getString("jCheckBox34.text")); // NOI18N
        jCheckBox34.setName("jCheckBox34"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        equipmentTypeSelectAllButton.setText(resourceMap.getString("equipmentTypeSelectAllButton.text")); // NOI18N
        equipmentTypeSelectAllButton.setName("equipmentTypeSelectAllButton"); // NOI18N
        equipmentTypeSelectAllButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                equipmentTypeSelectAllButtonMouseClicked(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                equipmentTypeSelectAllButtonMouseReleased(evt);
            }
        });
        equipmentTypeSelectAllButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                equipmentTypeSelectAllButtonKeyReleased(evt);
            }
        });

        fourSlotCheckBox.setSelected(true);
        fourSlotCheckBox.setText(resourceMap.getString("fourSlotCheckBox.text")); // NOI18N
        fourSlotCheckBox.setName("fourSlotCheckBox"); // NOI18N

        runesSelectAllButton.setText(resourceMap.getString("runesSelectAllButton.text")); // NOI18N
        runesSelectAllButton.setName("runesSelectAllButton"); // NOI18N
        runesSelectAllButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                runesSelectAllButtonMouseClicked(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                runesSelectAllButtonMouseReleased(evt);
            }
        });
        runesSelectAllButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                runesSelectAllButtonKeyReleased(evt);
            }
        });

        fiveSlotCheckBox.setSelected(true);
        fiveSlotCheckBox.setText(resourceMap.getString("fiveSlotCheckBox.text")); // NOI18N
        fiveSlotCheckBox.setName("fiveSlotCheckBox"); // NOI18N

        runesSelectNoneButton.setText(resourceMap.getString("runesSelectNoneButton.text")); // NOI18N
        runesSelectNoneButton.setName("runesSelectNoneButton"); // NOI18N
        runesSelectNoneButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                runesSelectNoneButtonMouseClicked(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                runesSelectNoneButtonMouseReleased(evt);
            }
        });
        runesSelectNoneButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                runesSelectNoneButtonKeyReleased(evt);
            }
        });

        sixSlotCheckBox.setSelected(true);
        sixSlotCheckBox.setText(resourceMap.getString("sixSlotCheckBox.text")); // NOI18N
        sixSlotCheckBox.setName("sixSlotCheckBox"); // NOI18N

        jSeparator1.setName("jSeparator1"); // NOI18N

        acceptButton.setText(resourceMap.getString("acceptButton.text")); // NOI18N
        acceptButton.setName("acceptButton"); // NOI18N
        acceptButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                acceptButtonMouseClicked(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                acceptButtonMouseReleased(evt);
            }
        });
        acceptButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                acceptButtonKeyReleased(evt);
            }
        });

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        equipmentTypeList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Weapons", "Body Armor", "Shields", "Helms", "Boots", "Belts", "Gloves", "Charms", "Arrows/Bolts", "Druid Pelts", "1H Melee Weapons", "2H Melee Weapons", "2H Weapons", "Maces", "Hammers", "Clubs", "Claws", "Swords", "Daggers", "Spears", "Polearms", "Axes", "Mana Blades", "Bows", "Crossbows", "Swords", "Scepters", "Blessed Edges", "Orbs", "Wands", "1H Katanas", "2H Katanas" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        equipmentTypeList.setToolTipText(resourceMap.getString("equipmentTypeList.toolTipText")); // NOI18N
        equipmentTypeList.setName("equipmentTypeList"); // NOI18N
        equipmentTypeList.setRequestFocusEnabled(false);
        equipmentTypeList.setSelectedIndex(0);
        equipmentTypeList.setSelectedIndices(new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31});
        jScrollPane1.setViewportView(equipmentTypeList);

        cancelButton.setText(resourceMap.getString("cancelButton.text")); // NOI18N
        cancelButton.setName("cancelButton"); // NOI18N
        cancelButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cancelButtonMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                cancelButtonMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                cancelButtonMouseReleased(evt);
            }
        });
        cancelButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                cancelButtonKeyReleased(evt);
            }
        });

        jCheckBox31.setSelected(true);
        jCheckBox31.setText(resourceMap.getString("jCheckBox31.text")); // NOI18N
        jCheckBox31.setName("jCheckBox31"); // NOI18N

        jCheckBox35.setSelected(true);
        jCheckBox35.setText(resourceMap.getString("jCheckBox35.text")); // NOI18N
        jCheckBox35.setName("jCheckBox35"); // NOI18N

        jCheckBox28.setSelected(true);
        jCheckBox28.setText(resourceMap.getString("jCheckBox28.text")); // NOI18N
        jCheckBox28.setName("jCheckBox28"); // NOI18N

        jCheckBox41.setSelected(true);
        jCheckBox41.setText(resourceMap.getString("jCheckBox41.text")); // NOI18N
        jCheckBox41.setName("jCheckBox41"); // NOI18N

        jCheckBox23.setSelected(true);
        jCheckBox23.setText(resourceMap.getString("jCheckBox23.text")); // NOI18N
        jCheckBox23.setName("jCheckBox23"); // NOI18N

        jCheckBox22.setSelected(true);
        jCheckBox22.setText(resourceMap.getString("jCheckBox22.text")); // NOI18N
        jCheckBox22.setName("jCheckBox22"); // NOI18N

        jCheckBox40.setSelected(true);
        jCheckBox40.setText(resourceMap.getString("jCheckBox40.text")); // NOI18N
        jCheckBox40.setName("jCheckBox40"); // NOI18N

        jCheckBox38.setSelected(true);
        jCheckBox38.setText(resourceMap.getString("jCheckBox38.text")); // NOI18N
        jCheckBox38.setName("jCheckBox38"); // NOI18N

        jCheckBox36.setSelected(true);
        jCheckBox36.setText(resourceMap.getString("jCheckBox36.text")); // NOI18N
        jCheckBox36.setName("jCheckBox36"); // NOI18N

        jCheckBox37.setSelected(true);
        jCheckBox37.setText(resourceMap.getString("jCheckBox37.text")); // NOI18N
        jCheckBox37.setName("jCheckBox37"); // NOI18N

        twoSlotCheckBox.setSelected(true);
        twoSlotCheckBox.setText(resourceMap.getString("twoSlotCheckBox.text")); // NOI18N
        twoSlotCheckBox.setName("twoSlotCheckBox"); // NOI18N

        threeSlotCheckBox.setSelected(true);
        threeSlotCheckBox.setText(resourceMap.getString("threeSlotCheckBox.text")); // NOI18N
        threeSlotCheckBox.setName("threeSlotCheckBox"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jCheckBox1)
                                    .addComponent(jCheckBox2)
                                    .addComponent(jCheckBox3)
                                    .addComponent(jCheckBox4)
                                    .addComponent(jCheckBox5)
                                    .addComponent(jCheckBox0)
                                    .addComponent(jCheckBox6))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jCheckBox13)
                                    .addComponent(jCheckBox12)
                                    .addComponent(jCheckBox11)
                                    .addComponent(jCheckBox10)
                                    .addComponent(jCheckBox7)
                                    .addComponent(jCheckBox9)
                                    .addComponent(jCheckBox8))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jCheckBox15)
                                    .addComponent(jCheckBox17)
                                    .addComponent(jCheckBox14)
                                    .addComponent(jCheckBox16)
                                    .addComponent(jCheckBox19)
                                    .addComponent(jCheckBox18)
                                    .addComponent(jCheckBox20)))
                            .addGroup(layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(runesSelectAllButton)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jCheckBox27)
                                    .addComponent(jCheckBox26)
                                    .addComponent(jCheckBox25)
                                    .addComponent(jCheckBox24)
                                    .addComponent(jCheckBox21)
                                    .addComponent(jCheckBox23)
                                    .addComponent(jCheckBox22))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jCheckBox33)
                                    .addComponent(jCheckBox34)
                                    .addComponent(jCheckBox31)
                                    .addComponent(jCheckBox28)
                                    .addComponent(jCheckBox30)
                                    .addComponent(jCheckBox29)
                                    .addComponent(jCheckBox32))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jCheckBox39)
                                    .addComponent(jCheckBox40)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jCheckBox38)
                                            .addComponent(jCheckBox36)
                                            .addComponent(jCheckBox37)
                                            .addComponent(jCheckBox35))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jCheckBox42)
                                            .addComponent(jCheckBox45)
                                            .addComponent(jCheckBox43)
                                            .addComponent(jCheckBox44)))
                                    .addComponent(jCheckBox41)))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(21, 21, 21)
                                .addComponent(runesSelectNoneButton))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(95, 95, 95)
                        .addComponent(jLabel2)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel3)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(equipmentTypeSelectAllButton)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(oneSlotCheckBox)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                                .addComponent(jLabel1)
                                .addComponent(twoSlotCheckBox))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(threeSlotCheckBox))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(fourSlotCheckBox)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(fiveSlotCheckBox)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(sixSlotCheckBox))))
                .addContainerGap())
            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(261, Short.MAX_VALUE)
                .addComponent(acceptButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cancelButton)
                .addGap(15, 15, 15))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(equipmentTypeSelectAllButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(oneSlotCheckBox)
                            .addComponent(twoSlotCheckBox)
                            .addComponent(threeSlotCheckBox))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(fourSlotCheckBox)
                            .addComponent(fiveSlotCheckBox)
                            .addComponent(sixSlotCheckBox)))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jCheckBox28)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox29)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox30)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox31)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox32)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox33)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox34))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jCheckBox21)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox22)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox23)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox24)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox25)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox26)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox27))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jCheckBox35)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox36)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox37)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox38)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox39)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox40)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox41)))
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jCheckBox14)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jCheckBox15)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jCheckBox16)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jCheckBox17)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jCheckBox18)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jCheckBox19)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jCheckBox20))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jCheckBox7)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox8)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox9)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox10)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox11)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox12)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox13))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jCheckBox0)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox1)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox3)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox4)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox5)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jCheckBox6))))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jCheckBox42)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jCheckBox43)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jCheckBox44)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jCheckBox45))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(runesSelectAllButton)
                            .addComponent(runesSelectNoneButton))))
                .addGap(18, 18, 18)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(acceptButton)
                    .addComponent(cancelButton))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cancelButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cancelButtonMouseClicked
        this.setVisible(false);
}//GEN-LAST:event_cancelButtonMouseClicked

    private void acceptButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_acceptButtonMouseClicked

        filter = new Filter();

        if(jCheckBox0.isSelected())
            filter.addRune(0,1);
        if(jCheckBox1.isSelected())
            filter.addRune(1,1);
        if(jCheckBox2.isSelected())
            filter.addRune(2,1);
        if(jCheckBox3.isSelected())
            filter.addRune(3,1);
        if(jCheckBox4.isSelected())
            filter.addRune(4,1);
        if(jCheckBox5.isSelected())
            filter.addRune(5,1);
        if(jCheckBox6.isSelected())
            filter.addRune(6,1);
        if(jCheckBox7.isSelected())
            filter.addRune(7,1);
        if(jCheckBox8.isSelected())
            filter.addRune(8,1);
        if(jCheckBox9.isSelected())
            filter.addRune(9,1);
        if(jCheckBox10.isSelected())
            filter.addRune(10,1);
        if(jCheckBox11.isSelected())
            filter.addRune(11,1);
        if(jCheckBox12.isSelected())
            filter.addRune(12,1);
        if(jCheckBox13.isSelected())
            filter.addRune(13,1);
        if(jCheckBox14.isSelected())
            filter.addRune(14,1);
        if(jCheckBox15.isSelected())
            filter.addRune(15,1);
        if(jCheckBox16.isSelected())
            filter.addRune(16,1);
        if(jCheckBox17.isSelected())
            filter.addRune(17,1);
        if(jCheckBox18.isSelected())
            filter.addRune(18,1);
        if(jCheckBox19.isSelected())
            filter.addRune(19,1);
        if(jCheckBox20.isSelected())
            filter.addRune(20,1);
        if(jCheckBox21.isSelected())
            filter.addRune(21,1);
        if(jCheckBox22.isSelected())
            filter.addRune(22,1);
        if(jCheckBox23.isSelected())
            filter.addRune(23,1);
        if(jCheckBox24.isSelected())
            filter.addRune(24,1);
        if(jCheckBox25.isSelected())
            filter.addRune(25,1);
        if(jCheckBox26.isSelected())
            filter.addRune(26,1);
        if(jCheckBox27.isSelected())
            filter.addRune(27,1);
        if(jCheckBox28.isSelected())
            filter.addRune(28,1);
        if(jCheckBox29.isSelected())
            filter.addRune(29,1);
        if(jCheckBox30.isSelected())
            filter.addRune(30,1);
        if(jCheckBox31.isSelected())
            filter.addRune(31,1);
        if(jCheckBox32.isSelected())
            filter.addRune(32,1);
        if(jCheckBox33.isSelected())
            filter.addRune(33,1);
        if(jCheckBox34.isSelected())
            filter.addRune(34,1);
        if(jCheckBox35.isSelected())
            filter.addRune(35,1);
        if(jCheckBox36.isSelected())
            filter.addRune(36,1);
        if(jCheckBox37.isSelected())
            filter.addRune(37,1);
        if(jCheckBox38.isSelected())
            filter.addRune(38,1);
        if(jCheckBox39.isSelected())
            filter.addRune(39,1);
        if(jCheckBox40.isSelected())
            filter.addRune(40,1);
        if(jCheckBox41.isSelected())
            filter.addRune(41,1);
        if(jCheckBox42.isSelected())
            filter.addRune(42,1);
        if(jCheckBox43.isSelected())
            filter.addRune(43,1);
        if(jCheckBox44.isSelected())
            filter.addRune(44,1);
        if(jCheckBox45.isSelected())
            filter.addRune(45,1);

        if(oneSlotCheckBox.isSelected())
            filter.addSlot(0);
        if(twoSlotCheckBox.isSelected())
            filter.addSlot(1);
        if(threeSlotCheckBox.isSelected())
            filter.addSlot(2);
        if(fourSlotCheckBox.isSelected())
            filter.addSlot(3);
        if(fiveSlotCheckBox.isSelected())
            filter.addSlot(4);
        if(sixSlotCheckBox.isSelected())
            filter.addSlot(5);


        int[] eqArray = equipmentTypeList.getSelectedIndices();

        for(int i=0;i<eqArray.length;i++)
        {
            filter.addEquip(eqArray[i]);
        }


        this.setVisible(false);
    }//GEN-LAST:event_acceptButtonMouseClicked

    private void runesSelectAllButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_runesSelectAllButtonMouseClicked

        jCheckBox0.setSelected(true);
        jCheckBox1.setSelected(true);
        jCheckBox2.setSelected(true);
        jCheckBox3.setSelected(true);
        jCheckBox4.setSelected(true);
        jCheckBox5.setSelected(true);
        jCheckBox6.setSelected(true);
        jCheckBox7.setSelected(true);
        jCheckBox8.setSelected(true);
        jCheckBox9.setSelected(true);
        jCheckBox10.setSelected(true);
        jCheckBox11.setSelected(true);
        jCheckBox12.setSelected(true);
        jCheckBox13.setSelected(true);
        jCheckBox14.setSelected(true);
        jCheckBox15.setSelected(true);
        jCheckBox16.setSelected(true);
        jCheckBox17.setSelected(true);
        jCheckBox18.setSelected(true);
        jCheckBox19.setSelected(true);
        jCheckBox20.setSelected(true);
        jCheckBox21.setSelected(true);
        jCheckBox22.setSelected(true);
        jCheckBox23.setSelected(true);
        jCheckBox24.setSelected(true);
        jCheckBox25.setSelected(true);
        jCheckBox26.setSelected(true);
        jCheckBox27.setSelected(true);
        jCheckBox28.setSelected(true);
        jCheckBox29.setSelected(true);
        jCheckBox30.setSelected(true);
        jCheckBox31.setSelected(true);
        jCheckBox32.setSelected(true);
        jCheckBox33.setSelected(true);
        jCheckBox34.setSelected(true);
        jCheckBox35.setSelected(true);
        jCheckBox36.setSelected(true);
        jCheckBox37.setSelected(true);
        jCheckBox38.setSelected(true);
        jCheckBox39.setSelected(true);
        jCheckBox40.setSelected(true);
        jCheckBox41.setSelected(true);
        jCheckBox42.setSelected(true);
        jCheckBox43.setSelected(true);
        jCheckBox44.setSelected(true);
        jCheckBox45.setSelected(true);

    }//GEN-LAST:event_runesSelectAllButtonMouseClicked

    private void runesSelectNoneButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_runesSelectNoneButtonMouseClicked
       
        jCheckBox0.setSelected(false);
        jCheckBox1.setSelected(false);
        jCheckBox2.setSelected(false);
        jCheckBox3.setSelected(false);
        jCheckBox4.setSelected(false);
        jCheckBox5.setSelected(false);
        jCheckBox6.setSelected(false);
        jCheckBox7.setSelected(false);
        jCheckBox8.setSelected(false);
        jCheckBox9.setSelected(false);
        jCheckBox10.setSelected(false);
        jCheckBox11.setSelected(false);
        jCheckBox12.setSelected(false);
        jCheckBox13.setSelected(false);
        jCheckBox14.setSelected(false);
        jCheckBox15.setSelected(false);
        jCheckBox16.setSelected(false);
        jCheckBox17.setSelected(false);
        jCheckBox18.setSelected(false);
        jCheckBox19.setSelected(false);
        jCheckBox20.setSelected(false);
        jCheckBox21.setSelected(false);
        jCheckBox22.setSelected(false);
        jCheckBox23.setSelected(false);
        jCheckBox24.setSelected(false);
        jCheckBox25.setSelected(false);
        jCheckBox26.setSelected(false);
        jCheckBox27.setSelected(false);
        jCheckBox28.setSelected(false);
        jCheckBox29.setSelected(false);
        jCheckBox30.setSelected(false);
        jCheckBox31.setSelected(false);
        jCheckBox32.setSelected(false);
        jCheckBox33.setSelected(false);
        jCheckBox34.setSelected(false);
        jCheckBox35.setSelected(false);
        jCheckBox36.setSelected(false);
        jCheckBox37.setSelected(false);
        jCheckBox38.setSelected(false);
        jCheckBox39.setSelected(false);
        jCheckBox40.setSelected(false);
        jCheckBox41.setSelected(false);
        jCheckBox42.setSelected(false);
        jCheckBox43.setSelected(false);
        jCheckBox44.setSelected(false);
        jCheckBox45.setSelected(false);

    }//GEN-LAST:event_runesSelectNoneButtonMouseClicked

    private void equipmentTypeSelectAllButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_equipmentTypeSelectAllButtonMouseClicked
        
        int[] array = new int[32];
        for(int i=0;i<32;i++)
            array[i]=i;
        
        equipmentTypeList.setSelectedIndices(array);

    }//GEN-LAST:event_equipmentTypeSelectAllButtonMouseClicked

    private void cancelButtonMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cancelButtonMousePressed
        // TODO remove
    }//GEN-LAST:event_cancelButtonMousePressed

    private void cancelButtonMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cancelButtonMouseReleased
        cancelButtonMouseClicked(evt);
    }//GEN-LAST:event_cancelButtonMouseReleased

    private void acceptButtonMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_acceptButtonMouseReleased
        acceptButtonMouseClicked(evt);
    }//GEN-LAST:event_acceptButtonMouseReleased

    private void runesSelectNoneButtonMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_runesSelectNoneButtonMouseReleased
        runesSelectNoneButtonMouseClicked(evt);
    }//GEN-LAST:event_runesSelectNoneButtonMouseReleased

    private void runesSelectAllButtonMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_runesSelectAllButtonMouseReleased
        runesSelectAllButtonMouseClicked(evt);
    }//GEN-LAST:event_runesSelectAllButtonMouseReleased

    private void equipmentTypeSelectAllButtonMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_equipmentTypeSelectAllButtonMouseReleased
        equipmentTypeSelectAllButtonMouseClicked(evt);
    }//GEN-LAST:event_equipmentTypeSelectAllButtonMouseReleased

    private void equipmentTypeSelectAllButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_equipmentTypeSelectAllButtonKeyReleased
        if(evt.getKeyCode()==evt.VK_ENTER ||evt.getKeyCode()==evt.VK_SPACE )
        {
            int[] array = new int[32];
            for(int i=0;i<32;i++)
            array[i]=i;

            equipmentTypeList.setSelectedIndices(array);
        }
    }//GEN-LAST:event_equipmentTypeSelectAllButtonKeyReleased

    private void runesSelectAllButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_runesSelectAllButtonKeyReleased
        if(evt.getKeyCode()==evt.VK_ENTER ||evt.getKeyCode()==evt.VK_SPACE )
        {
            jCheckBox0.setSelected(true);
            jCheckBox1.setSelected(true);
            jCheckBox2.setSelected(true);
            jCheckBox3.setSelected(true);
            jCheckBox4.setSelected(true);
            jCheckBox5.setSelected(true);
            jCheckBox6.setSelected(true);
            jCheckBox7.setSelected(true);
            jCheckBox8.setSelected(true);
            jCheckBox9.setSelected(true);
            jCheckBox10.setSelected(true);
            jCheckBox11.setSelected(true);
            jCheckBox12.setSelected(true);
            jCheckBox13.setSelected(true);
            jCheckBox14.setSelected(true);
            jCheckBox15.setSelected(true);
            jCheckBox16.setSelected(true);
            jCheckBox17.setSelected(true);
            jCheckBox18.setSelected(true);
            jCheckBox19.setSelected(true);
            jCheckBox20.setSelected(true);
            jCheckBox21.setSelected(true);
            jCheckBox22.setSelected(true);
            jCheckBox23.setSelected(true);
            jCheckBox24.setSelected(true);
            jCheckBox25.setSelected(true);
            jCheckBox26.setSelected(true);
            jCheckBox27.setSelected(true);
            jCheckBox28.setSelected(true);
            jCheckBox29.setSelected(true);
            jCheckBox30.setSelected(true);
            jCheckBox31.setSelected(true);
            jCheckBox32.setSelected(true);
            jCheckBox33.setSelected(true);
            jCheckBox34.setSelected(true);
            jCheckBox35.setSelected(true);
            jCheckBox36.setSelected(true);
            jCheckBox37.setSelected(true);
            jCheckBox38.setSelected(true);
            jCheckBox39.setSelected(true);
            jCheckBox40.setSelected(true);
            jCheckBox41.setSelected(true);
            jCheckBox42.setSelected(true);
            jCheckBox43.setSelected(true);
            jCheckBox44.setSelected(true);
            jCheckBox45.setSelected(true);
        }
    }//GEN-LAST:event_runesSelectAllButtonKeyReleased

    private void runesSelectNoneButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_runesSelectNoneButtonKeyReleased
        if(evt.getKeyCode()==evt.VK_ENTER ||evt.getKeyCode()==evt.VK_SPACE )
        {
            jCheckBox0.setSelected(false);
            jCheckBox1.setSelected(false);
            jCheckBox2.setSelected(false);
            jCheckBox3.setSelected(false);
            jCheckBox4.setSelected(false);
            jCheckBox5.setSelected(false);
            jCheckBox6.setSelected(false);
            jCheckBox7.setSelected(false);
            jCheckBox8.setSelected(false);
            jCheckBox9.setSelected(false);
            jCheckBox10.setSelected(false);
            jCheckBox11.setSelected(false);
            jCheckBox12.setSelected(false);
            jCheckBox13.setSelected(false);
            jCheckBox14.setSelected(false);
            jCheckBox15.setSelected(false);
            jCheckBox16.setSelected(false);
            jCheckBox17.setSelected(false);
            jCheckBox18.setSelected(false);
            jCheckBox19.setSelected(false);
            jCheckBox20.setSelected(false);
            jCheckBox21.setSelected(false);
            jCheckBox22.setSelected(false);
            jCheckBox23.setSelected(false);
            jCheckBox24.setSelected(false);
            jCheckBox25.setSelected(false);
            jCheckBox26.setSelected(false);
            jCheckBox27.setSelected(false);
            jCheckBox28.setSelected(false);
            jCheckBox29.setSelected(false);
            jCheckBox30.setSelected(false);
            jCheckBox31.setSelected(false);
            jCheckBox32.setSelected(false);
            jCheckBox33.setSelected(false);
            jCheckBox34.setSelected(false);
            jCheckBox35.setSelected(false);
            jCheckBox36.setSelected(false);
            jCheckBox37.setSelected(false);
            jCheckBox38.setSelected(false);
            jCheckBox39.setSelected(false);
            jCheckBox40.setSelected(false);
            jCheckBox41.setSelected(false);
            jCheckBox42.setSelected(false);
            jCheckBox43.setSelected(false);
            jCheckBox44.setSelected(false);
            jCheckBox45.setSelected(false);
        }
    }//GEN-LAST:event_runesSelectNoneButtonKeyReleased

    private void acceptButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_acceptButtonKeyReleased
        if(evt.getKeyCode()==evt.VK_ENTER ||evt.getKeyCode()==evt.VK_SPACE )
        {
            filter = new Filter();

            if(jCheckBox0.isSelected())
                filter.addRune(0,1);
            if(jCheckBox1.isSelected())
                filter.addRune(1,1);
            if(jCheckBox2.isSelected())
                filter.addRune(2,1);
            if(jCheckBox3.isSelected())
                filter.addRune(3,1);
            if(jCheckBox4.isSelected())
                filter.addRune(4,1);
            if(jCheckBox5.isSelected())
                filter.addRune(5,1);
            if(jCheckBox6.isSelected())
                filter.addRune(6,1);
            if(jCheckBox7.isSelected())
                filter.addRune(7,1);
            if(jCheckBox8.isSelected())
                filter.addRune(8,1);
            if(jCheckBox9.isSelected())
                filter.addRune(9,1);
            if(jCheckBox10.isSelected())
                filter.addRune(10,1);
            if(jCheckBox11.isSelected())
                filter.addRune(11,1);
            if(jCheckBox12.isSelected())
                filter.addRune(12,1);
            if(jCheckBox13.isSelected())
                filter.addRune(13,1);
            if(jCheckBox14.isSelected())
                filter.addRune(14,1);
            if(jCheckBox15.isSelected())
                filter.addRune(15,1);
            if(jCheckBox16.isSelected())
                filter.addRune(16,1);
            if(jCheckBox17.isSelected())
                filter.addRune(17,1);
            if(jCheckBox18.isSelected())
                filter.addRune(18,1);
            if(jCheckBox19.isSelected())
                filter.addRune(19,1);
            if(jCheckBox20.isSelected())
                filter.addRune(20,1);
            if(jCheckBox21.isSelected())
                filter.addRune(21,1);
            if(jCheckBox22.isSelected())
                filter.addRune(22,1);
            if(jCheckBox23.isSelected())
                filter.addRune(23,1);
            if(jCheckBox24.isSelected())
                filter.addRune(24,1);
            if(jCheckBox25.isSelected())
                filter.addRune(25,1);
            if(jCheckBox26.isSelected())
                filter.addRune(26,1);
            if(jCheckBox27.isSelected())
                filter.addRune(27,1);
            if(jCheckBox28.isSelected())
                filter.addRune(28,1);
            if(jCheckBox29.isSelected())
                filter.addRune(29,1);
            if(jCheckBox30.isSelected())
                filter.addRune(30,1);
            if(jCheckBox31.isSelected())
                filter.addRune(31,1);
            if(jCheckBox32.isSelected())
                filter.addRune(32,1);
            if(jCheckBox33.isSelected())
                filter.addRune(33,1);
            if(jCheckBox34.isSelected())
                filter.addRune(34,1);
            if(jCheckBox35.isSelected())
                filter.addRune(35,1);
            if(jCheckBox36.isSelected())
                filter.addRune(36,1);
            if(jCheckBox37.isSelected())
                filter.addRune(37,1);
            if(jCheckBox38.isSelected())
                filter.addRune(38,1);
            if(jCheckBox39.isSelected())
                filter.addRune(39,1);
            if(jCheckBox40.isSelected())
                filter.addRune(40,1);
            if(jCheckBox41.isSelected())
                filter.addRune(41,1);
            if(jCheckBox42.isSelected())
                filter.addRune(42,1);
            if(jCheckBox43.isSelected())
                filter.addRune(43,1);
            if(jCheckBox44.isSelected())
                filter.addRune(44,1);
            if(jCheckBox45.isSelected())
                filter.addRune(45,1);

            if(oneSlotCheckBox.isSelected())
                filter.addSlot(0);
            if(twoSlotCheckBox.isSelected())
                filter.addSlot(1);
            if(threeSlotCheckBox.isSelected())
                filter.addSlot(2);
            if(fourSlotCheckBox.isSelected())
                filter.addSlot(3);
            if(fiveSlotCheckBox.isSelected())
                filter.addSlot(4);
            if(sixSlotCheckBox.isSelected())
                filter.addSlot(5);


            int[] eqArray = equipmentTypeList.getSelectedIndices();

            for(int i=0;i<eqArray.length;i++)
            {
                filter.addEquip(eqArray[i]);
            }


            this.setVisible(false);
        }
    }//GEN-LAST:event_acceptButtonKeyReleased

    private void cancelButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_cancelButtonKeyReleased
        if(evt.getKeyCode()==evt.VK_ENTER ||evt.getKeyCode()==evt.VK_SPACE )
        {
            this.setVisible(false);
        }
    }//GEN-LAST:event_cancelButtonKeyReleased

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                FilterWindow dialog = new FilterWindow(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton acceptButton;
    private javax.swing.JButton cancelButton;
    private javax.swing.JList equipmentTypeList;
    private javax.swing.JButton equipmentTypeSelectAllButton;
    private javax.swing.JCheckBox fiveSlotCheckBox;
    private javax.swing.JCheckBox fourSlotCheckBox;
    private javax.swing.JCheckBox jCheckBox0;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox10;
    private javax.swing.JCheckBox jCheckBox11;
    private javax.swing.JCheckBox jCheckBox12;
    private javax.swing.JCheckBox jCheckBox13;
    private javax.swing.JCheckBox jCheckBox14;
    private javax.swing.JCheckBox jCheckBox15;
    private javax.swing.JCheckBox jCheckBox16;
    private javax.swing.JCheckBox jCheckBox17;
    private javax.swing.JCheckBox jCheckBox18;
    private javax.swing.JCheckBox jCheckBox19;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox20;
    private javax.swing.JCheckBox jCheckBox21;
    private javax.swing.JCheckBox jCheckBox22;
    private javax.swing.JCheckBox jCheckBox23;
    private javax.swing.JCheckBox jCheckBox24;
    private javax.swing.JCheckBox jCheckBox25;
    private javax.swing.JCheckBox jCheckBox26;
    private javax.swing.JCheckBox jCheckBox27;
    private javax.swing.JCheckBox jCheckBox28;
    private javax.swing.JCheckBox jCheckBox29;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JCheckBox jCheckBox30;
    private javax.swing.JCheckBox jCheckBox31;
    private javax.swing.JCheckBox jCheckBox32;
    private javax.swing.JCheckBox jCheckBox33;
    private javax.swing.JCheckBox jCheckBox34;
    private javax.swing.JCheckBox jCheckBox35;
    private javax.swing.JCheckBox jCheckBox36;
    private javax.swing.JCheckBox jCheckBox37;
    private javax.swing.JCheckBox jCheckBox38;
    private javax.swing.JCheckBox jCheckBox39;
    private javax.swing.JCheckBox jCheckBox4;
    private javax.swing.JCheckBox jCheckBox40;
    private javax.swing.JCheckBox jCheckBox41;
    private javax.swing.JCheckBox jCheckBox42;
    private javax.swing.JCheckBox jCheckBox43;
    private javax.swing.JCheckBox jCheckBox44;
    private javax.swing.JCheckBox jCheckBox45;
    private javax.swing.JCheckBox jCheckBox5;
    private javax.swing.JCheckBox jCheckBox6;
    private javax.swing.JCheckBox jCheckBox7;
    private javax.swing.JCheckBox jCheckBox8;
    private javax.swing.JCheckBox jCheckBox9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JCheckBox oneSlotCheckBox;
    private javax.swing.JButton runesSelectAllButton;
    private javax.swing.JButton runesSelectNoneButton;
    private javax.swing.JCheckBox sixSlotCheckBox;
    private javax.swing.JCheckBox threeSlotCheckBox;
    private javax.swing.JCheckBox twoSlotCheckBox;
    // End of variables declaration//GEN-END:variables

}
